package com.zhuangwei.controller;

import com.zhuangwei.po.SysUser;
import com.zhuangwei.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LeviCoder
 * @create 2019-03-09 16:41
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private UserService userService;

    @GetMapping("/findById")
    public SysUser findById(){
        return userService.queryByid(1);
    }

}
